package com.example.carproviderbackstage.mapper.dl.admin;

import com.example.carinterface.pojo.Driver;
import com.example.carinterface.pojo.Login;
import com.example.carinterface.pojo.User;
import com.example.carinterface.pojo.Worker;

import java.util.Map;

public interface LoginMapper {

    /**
     * 用户登录
     * tel查询
     * @param
     * @return
     */
    User findUser(String tel);

    /**
     * 管理员登录
     * 查询login表
     *
     *
     * @param username username
     *
     * @return worker
     */
    Worker findWorker(String username);

    /**
     * 司机登录
     * 查询driver表
     * @param tel  tel
     *
     * @return driver
     */
   Driver findDriver(String tel);

    Login findLogin(String username);

    int updateLoginPassword(Map<String, String> map);

    Login FindLoginByUsernameAndEmail(Map<String, String> map);

    void addUserByTel(Map<String, String> map);
}
